<template>
    <div class="header flex">
        <div class="top-btns">
            <a href="javascript:;" class="back" @click="back">返回</a>
            <a href="javascript:;" class="close">关闭</a>
        </div>
        <h2>{{title}}</h2>
    </div>
</template>

<script>
    export default {
        name:'header',
        props:['title'],
        methods:{
            back(){
                this.$router.go(-1);
            }
        }
    }
</script>
